/*
 * @Description:员工的路由规则
 * @Author: jun.wu
 * @Date: 2022-10-18 15:13:55
 * @LastEditors: jun.wu
 * @LastEditTime: 2022-11-02 15:05:40
 */
import Layout from "@/layout";
export default {
  //路由规则
  path: "/employees", //路由地址
  name: "employees",
  component: Layout,
  children: [
    {
      //二级路由的path不写的时候，它表示二级路由的默认路由
      path: "",
      component: () => import("@/views/employees"),
      meta: {
        //路由的元信息，存储数据的对象
        title: "员工管理",
        icon: "people",
      },
    },
    {
      path: "detail/:id", //动态路由传参 ?表示参数可传可不传
      component: () => import("@/views/employees/detail"),
      hidden: true, //表示该内容不在左侧显示
      meta: {
        title: "员工详情",
      },
    },
    {
      path: "print/:id",
      component: () => import("@/views/employees/print"),
      hidden: true,
      meta: {
        title: "员工打印",
      },
    },
  ],
};
